
import javax.ejb.Schedule;
import javax.ejb.Stateless;

/**
 *
 * @author Jason 14-Jul-2011
 */
@Stateless
public class BackupDatabase {

    private static final String backup_hour = "07";
    private static final String backup_minute = "20";

    @Schedule(timezone = "Asia/Shanghai", dayOfMonth = "*", hour = backup_hour, minute = backup_minute)
    public void doBack() {
        DatabaseUitl.backupDatabase();
    }
}
